Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latexify undefined array elements #308

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

gustaphe
Copy link
Collaborator

No description provided.

@gustaphe
Copy link
Collaborator Author

julia> undefarr = Array{Any,2}(undef, 2, 2)
2×2 Matrix{Any}:
 #undef  #undef
 #undef  #undef

julia> undefarr[1] = "x"
"x"

julia> render(latexify(undefarr))

image

@ChrisRackauckas
Copy link
Contributor

That looks reasonable to me!

@damianodegaspari
Copy link

If I am not mistaken, \cdot is the same symbol used for sparse arrays. In that context it means 0 instead of undefined. Personally, I don't think it's a problem: context should make it clear enough. In my specific case, as an inexperienced person just trying to initialize a matrix, I would have been happy with any representation which didn't look like an error. Thus I'm fine with this solution (as I said, I would have been fine with basically everything).

@gustaphe gustaphe merged commit c7ac169 into korsbo:master Oct 3, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants